import request from "@/utils/request";

// 获取积分兑换商品列表
export const getExchangeGoodsAPI = (params) => {
  return request({
    url: "/vip/spuList",
    method: "POST",
    data: params,
  });
};

// 兑换商城
export const exchangeGoodsAPI = (params) => {
  return request({
    url: "/vip/exchange",
    method: "POST",
    data: params,
  });
};

// VIP会员信息
export const getVipInfoAPI = (params)=>{
  return request({
    url: "/vip/getVipInfo",
    method: "POST",
    data: params,
  });
}

// 获取分享码
export const getShareCodeAPI = (params)=>{
  return request({
    url: "/vip/share",
    method: "POST",
    data: params,
  });
}


export const punchInAPI = (params)=>{
  return request({
    url: "/vip/sign",
    method: "POST",
    data: params,
  });
};

// 分享结果汇总
export const getShareResultAPI = (params)=>{
  return request({
    url: "/vip/shareSummary",
    method: "POST",
    data: params,
  });
}

// 分享用户列表
export const getShareUserListAPI = (params)=>{
  return request({
    url: "/vip/shareList",
    method: "POST",
    data: params,
  });
}

// 分享排行榜
export const getShareRankAPI = (params)=>{
  return request({
    url: "/vip/shareRank",
    method: "POST",
    data: params,
  });
}
